package com.example.fruit;

import android.app.Application;

import com.example.utils.DBUtils;

/**
 * Created by User on 2015/6/30.
 */
public class MyApplication extends Application {

    private DBUtils dbUtils;
    private  int isSelected=0;
    private static  MyApplication application;


    @Override
    public void onCreate() {
        super.onCreate();
        setDbUtils(new DBUtils(getApplicationContext()));
        setIsSelected(0);
        application=this;
    }

    public  static  MyApplication getApplication (){
            return application;
    }


    public DBUtils getDbUtils() {
        return dbUtils;
    }

    public void setDbUtils(DBUtils dbUtils) {
        this.dbUtils = dbUtils;
    }

    public int getIsSelected() {
        return isSelected;
    }

    public void setIsSelected(int isSelected) {
        this.isSelected = isSelected;
    }
}
